package com.wang.myapplication.network.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by xhwang on 2018/4/26.
 */

public class KMInfoListResponse {
    @SerializedName("DT")
    private String dt;
    @SerializedName("Description")
    private String description;
    @SerializedName("Result")
    private int result;
    @SerializedName("KMList")
    private List<Kmlist> kmlist;
    @SerializedName("Thums")
    private List<Thums> thums;

    public void setDt(String dt) {
        this.dt = dt;
    }

    public String getDt() {
        return dt;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public int getResult() {
        return result;
    }

    public void setKmlist(List<Kmlist> kmlist) {
        this.kmlist = kmlist;
    }

    public List<Kmlist> getKmlist() {
        return kmlist;
    }

    public void setThums(List<Thums> thums) {
        this.thums = thums;
    }

    public List<Thums> getThums() {
        return thums;
    }

    public List<Kmlist> transferDatalists(KMInfoListResponse pObj) {
        List<Kmlist> dataLists = pObj.getKmlist();
        List<Thums> thumsList = pObj.getThums();
        for (int i = 0; i < dataLists.size(); i++) {
            dataLists.get(i).viewpath = thumsList.get(i).viewpath;
        }
        return dataLists;
    }

    public class Kmlist {

        @SerializedName("ArcId")
        private int arcid;
        @SerializedName("ClassId")
        private int classid;
        @SerializedName("Filter")
        private String filter;
        @SerializedName("Item")
        private List<Item> item;
        @SerializedName("Name")
        private String name;
        @SerializedName("Show")
        private int show;
        @SerializedName("TypeId")
        private int typeid;
        public String viewpath;

        public void setArcid(int arcid) {
            this.arcid = arcid;
        }

        public int getArcid() {
            return arcid;
        }

        public void setClassid(int classid) {
            this.classid = classid;
        }

        public int getClassid() {
            return classid;
        }

        public void setFilter(String filter) {
            this.filter = filter;
        }

        public String getFilter() {
            return filter;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }

        public void setShow(int show) {
            this.show = show;
        }

        public int getShow() {
            return show;
        }

        public void setTypeid(int typeid) {
            this.typeid = typeid;
        }

        public int getTypeid() {
            return typeid;
        }

        public List<Item> getItem() {
            return item;
        }

        public void setItem(List<Item> pItem) {
            item = pItem;
        }
    }

    public class Item {
        @SerializedName("ArcId")
        private int arcid;
        @SerializedName("ClassId")
        private int classid;
        @SerializedName("Filter")
        private String filter;
        @SerializedName("Name")
        private String name;
        @SerializedName("TypeId")
        private int typeid;

        public void setArcid(int arcid) {
            this.arcid = arcid;
        }

        public int getArcid() {
            return arcid;
        }

        public void setClassid(int classid) {
            this.classid = classid;
        }

        public int getClassid() {
            return classid;
        }

        public void setFilter(String filter) {
            this.filter = filter;
        }

        public String getFilter() {
            return filter;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }

        public void setTypeid(int typeid) {
            this.typeid = typeid;
        }

        public int getTypeid() {
            return typeid;
        }
    }

    public class Thums {

        @SerializedName("Error")
        private String error;
        @SerializedName("FileName")
        private String filename;
        @SerializedName("FilePath")
        private String filepath;
        @SerializedName("FileSize")
        private String filesize;
        @SerializedName("FileType")
        private String filetype;
        @SerializedName("ViewPath")
        private String viewpath;

        public void setError(String error) {
            this.error = error;
        }

        public String getError() {
            return error;
        }

        public void setFilename(String filename) {
            this.filename = filename;
        }

        public String getFilename() {
            return filename;
        }

        public void setFilepath(String filepath) {
            this.filepath = filepath;
        }

        public String getFilepath() {
            return filepath;
        }

        public void setFilesize(String filesize) {
            this.filesize = filesize;
        }

        public String getFilesize() {
            return filesize;
        }

        public void setFiletype(String filetype) {
            this.filetype = filetype;
        }

        public String getFiletype() {
            return filetype;
        }

        public void setViewpath(String viewpath) {
            this.viewpath = viewpath;
        }

        public String getViewpath() {
            return viewpath;
        }

    }


}
